package ooday03;

public class SwimTest {
    public static void main(String[] args) {
        Dog dog = new Dog("小雷",1,"白");
        dog.eat(); // Dog类重写之后的
        dog.lookHome(); // Dog类特有的
        dog.swim(); // Dog类重写之后的
        dog.drink(); // 复用Animal类的

        Chick chick = new Chick("小绿",3,"绿");
        chick.eat(); // Chick重写之后的
        chick.LayEggs(); // Chick特有的
        chick.drink(); // 复用Animal类的

        Fish fish = new Fish("小黄",4,"黄");
        fish.eat(); // Fish重写之后的
        fish.swim(); // Fish重写之后的
        fish.drink(); // 复用Animal类的
    }
}
